/** 默认参数 */
import { commonGlobalFields } from '../simples'
import type {
  TitleBarProps,
  TabBarProps,
  NoticeBarProps,
  LatestVideoProps,
  HottestVideoProps,
  CategoriesVideoProps,
  AlbumVideoProps,
  FixedVideoProps,
  MoreVideoListProps,
  MovieListProps,
  FilterCriteriaProps,
  FilterResultListProps,
  SimpleGlobalProps,
  FilterTabBarProps,
  CategoriesGridProps,
  BriefIntroductionProps,
  BottomFunctionProps,
  CommonListProps,
  CollectionReadingProps,
  VideoAnthologyProps,
  FilmRatingProps,
  BriefIntrProps,
  TabsListProps,
  TitleTabbarProps,
  ArticleTabBarProps,
  ArticleSettingsProps,
  AtlasMoreListProps,
  GlobalSettingsProps,
  VideoListProps,
  GuessYouLikeProps,
  PlayCountProps,
  ParticipatingWorksProps,
  TopFunctionProps,
  CommonGlobalProps
} from './arguments'

export const tabBarDefaultProps: TabBarProps = {
  sort: 1,
  pageFields: {
    background: ''
  },
  fields: {
    background: '',
    indicator: {
      show: '',
      color: '',
      height: ''
    },
    text: {
      color: '',
      size: '',
      selectedColor: '',
      selectedSize: '',
      letterSpacing: '',
      lineHeight: ''
    }
  }
}

export const titleBarDefaultProps: TitleBarProps = {
  sort: 2,
  min: 0,
  max: 100,
  value: 0,
  pageFields: {
    background: ''
  },
  fields: {
    logo: '',
    search: {
      border: {
        radius: '',
        width: '',
        color: ''
      },
      color: '',
      fill: '',
      placeholder: '',
      iconColor: '',
      align: ''
    },
    collection: {
      style: ''
    }
  }
}
export const noticeBarDefaultProps: NoticeBarProps = {
  sort: 3,
  pageFields: {
    background: ''
  },
  fields: {
    style: '',
    background: '',
    height: '',
    text: {
      color: '',
      size: '',
      letterSpacing: '',
      lineHeight: ''
    },
    duration: '',
    iconStyle: '',
    closeStyle: ''
  }
}
export const latestVideoPropsDefaultProps: LatestVideoProps = {
  sort: 4,
  pageFields: {
    background: ''
  },
  fields: {
    background: '',
    title: {
      color: '',
      size: '',
      letterSpacing: '',
      lineHeight: ''
    },
    layout: {
      style: '',
      limit: ''
    }
  }
}
export const hottestVideoDefaultProps: HottestVideoProps = {
  sort: 5,
  pageFields: {
    background: ''
  },
  fields: {
    background: '',
    title: {
      color: '',
      size: '',
      letterSpacing: '',
      lineHeight: ''
    },
    layout: {
      style: '',
      limit: ''
    }
  }
}
export const categoriesVideoDefaultProps: CategoriesVideoProps = {
  sort: 6,
  pageFields: {
    background: ''
  },
  fields: {
    background: '',
    title: {
      color: '',
      size: '',
      letterSpacing: '',
      lineHeight: ''
    },
    layout: {
      style: '',
      limit: ''
    }
  }
}
export const albumVideoDefaultProps: AlbumVideoProps = {
  sort: 7,
  pageFields: {
    background: ''
  },
  fields: {
    background: '',
    title: {
      color: '',
      size: '',
      letterSpacing: '',
      lineHeight: ''
    },
    layout: {
      style: '',
      limit: ''
    }
  }
}
export const fixedVideoDefaultProps: FixedVideoProps = {
  sort: 4,
  pageFields: {
    background: ''
  },
  fields: {
    background: '',
    title: {
      color: '',
      size: '',
      letterSpacing: '',
      lineHeight: ''
    },
    layout: {
      style: '',
      limit: ''
    }
  }
}
export const moreVideoListDefaultProps: MoreVideoListProps = {
  sort: 5,
  pageFields: {
    background: ''
  },
  fields: {
    background: '',
    title: {
      color: '',
      size: '',
      letterSpacing: '',
      lineHeight: ''
    },
    layout: {
      style: '',
      limit: ''
    }
  }
}

/** 影人列表 */
export const movieListDefaultProps: MovieListProps = {
  sort: 5,
  pageFields: {
    background: ''
  },
  fields: {
    background: '',
    color: '',
    layout: {
      style: '',
      limit: ''
    }
  }
}

/** 筛选分类标签 默认参数 */
export const filterTabBarDefaultProps: FilterTabBarProps = {
  sort: 4,
  pageFields: {
    background: ''
  },
  fields: {
    background: '',
    tag: {
      color: '',
      selected: ''
    },
    border: {
      color: '',
      selected: '',
      width: '',
      radius: ''
    },
    text: {
      color: '',
      size: '',
      selectedColor: '',
      selectedSize: '',
      letterSpacing: '',
      lineHeight: ''
    }
  }
}

/** 筛选条件 默认参数 */
export const filterCriteriaDefaultProps: FilterCriteriaProps = {
  sort: 1,
  pageFields: {
    background: ''
  },
  fields: {
    style: '',
    background: '',
    fill: '',
    border: {
      color: '',
      width: '',
      radius: ''
    },
    text: {
      color: '',
      selectedColor: ''
    }
  }
}

/** 选集参数 */
export const videoAnthologyDefaultProps: VideoAnthologyProps = {
  sort: 1,
  pageFields: {
    background: ''
  },
  fields: {
    style: '',
    selectedBorderColor: '',
    selectedBackground: '',
    selectTextColor: '',
    radius: ''
  }
}
/**影片评分 */
export const filmRatingDefaultProps: FilmRatingProps = {
  sort: 1,
  pageFields: {
    background: ''
  },
  fields: {
    fill: '',
    iconStyle: '',
    color: ''
  }
}
/** 简介 */
export const briefIntrDefaultProps: BriefIntrProps = {
  sort: 1,
  pageFields: {
    background: ''
  },
  fields: {
    maxLine: '',
    background: '',
    moreButton: {
      enable: true,
      style: ''
    }
  }
}

/**更多作品页-选项卡参数 */
export const tabsListDefaultProps: TabsListProps = {
  sort: 1,
  pageFields: {
    background: ''
  },
  fields: {
    style: '',
    background: '',
    indicator: {
      color: '',
      height: ''
    },
    text: {
      color: '',
      size: '',
      selectedColor: '',
      selectedSize: ''
    }
  }
}

/** 标题栏 默认参数 */
export const titleTabbarDefaultProps: TitleTabbarProps = {
  sort: 1,
  pageFields: {
    background: ''
  },
  fields: {
    background: '',
    titleColor: ''
  }
}
/** 文章设置 默认参数 */
export const articleSettingsDefaultProps: ArticleSettingsProps = {
  sort: 1,
  fields: {
    topBar: {
      style: ''
    }
  }
}

/** 图集顶部功能组件 */
export const topFunctionDefaultProps: TopFunctionProps = {
  sort: 1,
  fields: {
    topBar: {
      style: ''
    }
  }
}
/** 图集更多页 */
export const atlasMoreListDefaultProps: AtlasMoreListProps = {
  sort: 1,
  pageFields: {
    background: ''
  },
  fields: {
    atlasGrid: {
      background: '',
      layout: {
        style: '',
        limit: ''
      }
    }
  }
}

export const globalSettingsDefaultProps: GlobalSettingsProps = {
  sort: 1,
  fields: commonGlobalFields
}

export const articleTabBarDefaultProps: ArticleTabBarProps = {
  sort: 1,
  pageFields: {
    background: ''
  },
  fields: {
    style: '',
    border: {
      color: '',
      width: '',
      radius: ''
    },
    fill: '',
    text: {
      color: '',
      size: '',
      letterSpacing: '',
      lineHeight: ''
    }
  }
}

/** 分类宫格 默认参数 */
export const categoriesGridDefaultProps: CategoriesGridProps = {
  sort: 1,
  pageFields: {
    background: ''
  },
  fields: {
    background: '',
    cols: '',
    style: ''
  }
}
export const briefIntroductionDefaultProps: BriefIntroductionProps = {
  sort: 1,
  pageFields: {
    background: ''
  },
  fields: {
    background: '',
    maxLine: '',
    moreButton: {
      enable: '',
      style: ''
    }
  }
}

/** 筛选结果默认参数 */
export const filterResultListDefaultProps: FilterResultListProps = {
  sort: 2,
  actorMore: true,
  pageFields: { background: '' },
  fields: {
    background: '',
    layout: {
      style: '',
      limit: ''
    }
  }
}

/** 视频列表 */
export const videoListDefaultProps: VideoListProps = {
  sort: 1,
  actorMore: true,
  pageFields: { background: '' },
  fields: {
    background: '',
    layout: {
      style: '',
      limit: ''
    }
  }
}
/**猜你喜欢 */
export const guessYouLikeDefaultProps: GuessYouLikeProps = {
  sort: 2,
  actorMore: true,
  pageFields: { background: '' },
  fields: {
    background: '',
    title: {
      color: '',
      size: '',
      letterSpacing: '',
      lineHeight: ''
    },
    layout: {
      style: '',
      limit: ''
    }
  }
}
/**播放次数的参数*/
export const playCountDefaultProps: PlayCountProps = {
  sort: 2,
  actorMore: true,
  pageFields: { background: '' },
  fields: {
    enable: true,
    background: ''
  }
}
/** 参与作品*/
export const participatingWorksDefaultProps: ParticipatingWorksProps = {
  sort: 2,
  actorMore: true,
  pageFields: { background: '' },
  fields: {
    layout: {
      style: '',
      limit: ''
    }
  }
}

export const simpleGlobalDefaultProps: SimpleGlobalProps = { primary: '' }

export const commonGlobalDefaultProps: CommonGlobalProps = {
  simple: { primary: '' },
  primaryTextColor: '',
  tagStyle: '',
  searchIcon: '',
  change: {
    style: '',
    enable: ''
  },
  loadIcon: '',
  footer: {
    text: '',
    color: ''
  }
}
/**播放页-底部功能 */
export const bottomFunctionDefaultProps: BottomFunctionProps = {
  sort: 3,
  pageFields: { background: '' },
  fields: {
    background: '',
    style: ''
  }
}
export const commonListDefaultProps: CommonListProps = {
  sort: 3,
  title: '',
  pageFields: {
    background: ''
  },
  fields: {
    title: {
      color: '',
      size: '',
      letterSpacing: '',
      lineHeight: ''
    },
    layout: {
      style: '',
      limit: ''
    }
  }
}
export const collectionReadingDefaultProps: CollectionReadingProps = {
  sort: 3,
  pageFields: {
    background: ''
  },
  fields: {
    style: '',
    background: '',
    collection: {
      fill: '',
      color: ''
    },
    read: {
      fill: '',
      color: ''
    }
  }
}
